/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package eproject_sem2;

import javax.swing.JInternalFrame;

/**
 *
 * @author ZER0
 */
public class Show_price_Parce extends javax.swing.JFrame {

    ListOfPrice_Sever a = new ListOfPrice_Sever();

    public JInternalFrame getItfParce() {
        return itfParce;
    }

    /**
     * Creates new form Show_price_Parce
     */
    public Show_price_Parce() {
        initComponents();
 
        a.ShowTable("STTP", "TypeParceID", "TypeName", "PriceOfTypeParce", "List_of_Parce", tbPriceByParceE);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        itfParce = new javax.swing.JInternalFrame();
        jpPIBParceE = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tbPriceByParceE = new javax.swing.JTable();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        itfParce.setClosable(true);
        itfParce.setVisible(true);

        jpPIBParceE.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1), "Price information by parce", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12))); // NOI18N

        tbPriceByParceE.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "STTP", "TypeParceID", "TypeName", "PriceOfTypeParce"
            }
        ));
        tbPriceByParceE.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tbPriceByParceEMouseClicked(evt);
            }
        });
        jScrollPane3.setViewportView(tbPriceByParceE);

        javax.swing.GroupLayout jpPIBParceELayout = new javax.swing.GroupLayout(jpPIBParceE);
        jpPIBParceE.setLayout(jpPIBParceELayout);
        jpPIBParceELayout.setHorizontalGroup(
            jpPIBParceELayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpPIBParceELayout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 859, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        jpPIBParceELayout.setVerticalGroup(
            jpPIBParceELayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 462, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        javax.swing.GroupLayout itfParceLayout = new javax.swing.GroupLayout(itfParce.getContentPane());
        itfParce.getContentPane().setLayout(itfParceLayout);
        itfParceLayout.setHorizontalGroup(
            itfParceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jpPIBParceE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        itfParceLayout.setVerticalGroup(
            itfParceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jpPIBParceE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(itfParce, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(itfParce, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void tbPriceByParceEMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tbPriceByParceEMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_tbPriceByParceEMouseClicked

    /**
     * @param args the command line arguments
     */

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JInternalFrame itfParce;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JPanel jpPIBParceE;
    private javax.swing.JTable tbPriceByParceE;
    // End of variables declaration//GEN-END:variables
}
